import request from '@/utils/request'

export function getOrderList(params?: object) {
  return request({
    url: '/manage/order/listByOrg',
    method: 'get',
    params,
  })
}
export function getfinancingInfo(params?: object) {
  return request({
    url: '/manage/demand/getfinancingInfo',
    method: 'get',
    params,
  })
}
export function getCreditLoanRepayMent(params?: object) {
  return request({
    url: '/manage/organization/getCreditLoanRepay',
    method: 'get',
    params,
  })
}

export function addOrder(data: object) {
  return request({
    url: '/manage/order',
    method: 'post',
    data: data,
  })
}
export function addRepayment(data: object) {
  return request({
    url: '/manage/repayment',
    method: 'post',
    data: data,
  })
}
export function addCredit(data: object) {
  return request({
    url: '/manage/credit',
    method: 'post',
    data: data,
  })
}
export function addLoan(data: object) {
  return request({
    url: '/manage/loan',
    method: 'post',
    data: data,
  })
}
